package com.hnas.sys.orm;
// default package

//import ObjectType;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;




/**
 * LogInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="sys_log"
  
)

public class LogInfo  implements java.io.Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 5350486553617087939L;
	// Fields    


    // Fields    

     private long id;
     private String objectType;
     private User operator;
     private String operateTime;
     private long objectId;
     private String operateType;
     private String logInfo;
     private String objectNo;
     private String ip;


    // Constructors

    /** default constructor */
    public LogInfo() {
    }

    
   
    @Id @GeneratedValue(strategy=IDENTITY)    
    @Column(name="id",  nullable=false)

    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }

    
  
    @Column(name="operate_time", length=20)

    public String getOperateTime() {
        return this.operateTime;
    }
    
    public void setOperateTime(String operateTime) {
        this.operateTime = operateTime;
    }
    
    @Column(name="object_id")

    public long getObjectId() {
        return this.objectId;
    }
    
    public void setObjectId(long objectId) {
        this.objectId = objectId;
    }
    
    @Column(name="operate_type", length=50)

    public String getOperateType() {
        return this.operateType;
    }
    
    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }
    
    @Column(name="log_info", length=1000)

    public String getLogInfo() {
        return this.logInfo;
    }
    
    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="operator_id")
	public User getOperator() {
		return operator;
	}


	public void setOperator(User operator) {
		this.operator = operator;
	}

	 @Column(name="object_No")
	public String getObjectNo() {
		return objectNo;
	}


	public void setObjectNo(String objectNo) {
		this.objectNo = objectNo;
	}


	public String getIp() {
		return ip;
	}


	public void setIp(String ip) {
		this.ip = ip;
	}


	 @Column(name="object_Type")
	public String getObjectType() {
		return objectType;
	}



	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}
   








}